package org.example.projecttwo.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户认证信息表
 * </p>
 *
 * @author nn
 * @since 2025-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_auth")
@Schema(name="UserAuth对象", description="用户认证信息表")
public class UserTypeAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "认证类型")
    @TableField("auth_type")
    private Integer authType;

    @Schema(description = "认证状态")
    @TableField("auth_status")
    private Integer authStatus;

    @Schema(description = "认证申请时间")
    @TableField("auth_apply_time")
    private LocalDateTime authApplyTime;

    @Schema(description = "申请备注说明")
    @TableField("auth_apply_remark")
    private String authApplyRemark;

    @Schema(description = "认证材料")
    @TableField("auth_info")
    private String authInfo;

    @Schema(description = "审核人ID")
    @TableField("audit_admin_id")
    private Long auditAdminId;

    @Schema(description = "审核时间")
    @TableField("audit_time")
    private LocalDateTime auditTime;

    @Schema(description = "拒绝原因")
    @TableField("reject_reason")
    private String rejectReason;


}